
<div class="modal-header">
    <h4 class="modal-title">{{obj.title}}</h4>
</div>
<div class="modal-body">
    <div class="container-fluid form-horizontal ">
    	<div class="form-group" >
			<label class="col-xs-4 control-label">经销商</label>
			<div class="col-xs-6" >
				<!--<select class="form-control" ng-model="obj.seller_code" 
	              ng-options="view.CODE as view.NAME for view in taarr"
	            >
	            </select>-->
				<ui-select ng-model="obj.seller_code" theme="bootstrap">
					<ui-select-match placeholder="请选择一个景区">{{$select.selected.NAME}}</ui-select-match>
					<ui-select-choices repeat="item.CODE as item in taarr | filter: $select.search">
						<span ng-bind-html="item.NAME | highlight: $select.search"></span>
					</ui-select-choices>
				</ui-select>
			</div>
			<button class="btn btn-success col-xs-2" type="button" ng-click="create()">添加</button>
		</div>	


		<ul class="list-group">
		  <li class="list-group-item"
		  	ng-repeat="seller in sellers"
		  	ng-class="{true: 'list-group-item-success', false: 'list-group-item-danger'}[seller.state == 0]"
		  >	
		  	{{seller.company_name}}
		  	<a ng-click="stop(seller.seller_code)" class="btn pull-right" style="color: red; padding:0px;" ng-show="seller.state == 0">
	        	<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
	      	</a>
	      	<a ng-click="start(seller.seller_code)" class="btn pull-right" style="color: green; padding:0px;" ng-show="seller.state == 1">
	        	<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
	      	</a>
		  </li>
		</ul>

	</div>
</div>
<div class="modal-footer">
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>